package com.jd.sunny.java.multithreading.thread;

public class ThreadB extends Thread {
    int total;

    public void run() {
        synchronized (this) {
            for (int i = 0; i < 10000; i++) {
                total = total + i;
            }
            //��ɼ��㣬���������߳�
            notify();
        }
    }

}
